package ModelImplementation

import (
	"salary-paymment/Model"
	"time"
)

type WeeklySchedule struct {
	Model.PaymentSchedule
}

func (w *WeeklySchedule)WIsPaydate(payDate time.Time) bool {
	return payDate.Weekday() == time.Friday
}

func (w *WeeklySchedule)WGetPayPeriodStartDate(payPeriodEndDate time.Time) time.Time {
	return payPeriodEndDate.AddDate(0,0,-6)
}